package com.heima.wemedia.feign;

import com.heima.apis.wemedia.IWmUserClient;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import com.heima.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WmUserClient implements IWmUserClient {

    @Autowired
    private WmUserService wmUserService;

    @Override
    @PostMapping("/api/v1/auth/authPass")
    public ResponseResult authPass(WmUser user) {
        return wmUserService.sign(user);
    }
}